home *** CD-ROM | disk | FTP | other *** search
- /3.0
- (Extension.1
- Name: "VPF Viewer"
- Dependencies: "$AVBIN/vpfview.dll\n"
- Roots: 7
- Version: 30
- About: "Extends ArcView to support viewing, querying, and analyzing Vector Product Format (VPF) databases (v3.1)"
- CanUnloadScript: 2
- UnloadScript: 3
- InstallScript: 4
- UninstallScript: 5
- DependentScript: 6
- ExtVersion: 3100
- )
-
- (Script.2
- Name: "VpfView.CanUnload"
- SourceCode: "av.PurgeObjects\ncanUnload = System.CanUnloadLibrary(SELF.GetDependencies.Get(0))\nreturn canUnload\n"
- )
-
- (Script.3
- Name: "VpfView.Unload"
- SourceCode: "av.PurgeObjects\n"
- )
-
- (Script.4
- Name: "VpfView.Install"
- SourceCode: "\n\n"
- )
-
- (Script.5
- Name: "VpfView.Uninstall"
- SourceCode: "\n\n"
- )
-
- (Script.6
- Name: "VpfView.IsDependent"
- SourceCode: "av.PurgeObjects\ncanUnload = System.CanUnloadLibrary(SELF.GetDependencies.Get(0))\nisDependent = canUnload.Not\nreturn isDependent\n"
- )
-
- (Script.7
- Name: "Project.AddTable"
- SourceCode: "patterns = {\"*.dbf\", \"arcdr9\", \"*.txt\", \"*\", \n
- \"cat\", \"cnd\", \"dht\", \"dqt\", \"ebr\", \"edg\", \"end\", \"fac\", \n
- \"fca\", \"fcs\", \"grt\", \"lat\", \"lht\", \"rng\", \"txt\", \n
- \"char.vdt\", \"int.vdt\", \"*.aft\", \"*.ajt\", \"*.doc\", \"*.fit\", \"*.lft\",\n
- \"*.ljt\", \"*.pft\", \"*.pjt\", \"*.tft\", \"*.tjt\", \"*.rat\",\n
- \"cat.\", \"cnd.\", \"dht.\", \"dqt.\", \"ebr.\", \"edg.\", \"end.\", \"fac.\", \n
- \"fca.\", \"fcs.\", \"grt.\", \"lat.\", \"lht.\", \"rng.\", \"txt.\"}\n
- labels = {\"dBASE (*.dbf)\", \"INFO\", \"Delimited Text (*.txt)\", \"AllFiles (*)\",\n
- \"VPF (cat)\", \"VPF (cnd)\", \"VPF (dht)\", \"VPF (dqt)\", \"VPF (ebr)\", \"VPF (edg)\", \"VPF (end)\", \"VPF (fac)\", \n
- \"VPF (fca)\", \"VPF (fcs)\", \"VPF (grt)\", \"VPF (lat)\", \"VPF (lht)\", \"VPF (rng)\", \"VPF (txt)\", \n
- \"VPF (char.vdt)\", \"VPF (int.vdt)\", \"VPF (*.aft)\", \"VPF (*.ajt)\", \"VPF (*.doc)\", \"VPF (*.fit)\", \"VPF (*.lft)\", \n
- \"VPF (*.ljt)\", \"VPF (*.pft)\", \"VPF (*.pjt)\", \"VPF (*.tft)\", \"VPF (*.tjt)\", \"VPF (*.rat)\",\n
- \"VPF (cat.)\", \"VPF (cnd.)\", \"VPF (dht.)\", \"VPF (dqt.)\", \"VPF (ebr.)\", \"VPF (edg.)\", \"VPF (end.)\", \"VPF (fac.)\", \n
- \"VPF (fca.)\", \"VPF (fcs.)\", \"VPF (grt.)\", \"VPF (lat.)\", \"VPF (lht.)\", \"VPF (rng.)\", \"VPF (txt.)\"}\n
- files = FileDialog.ReturnFiles(patterns, labels, \"Add Table\", 0)\n
- for each f in files\n
- v = VTab.Make(f, FALSE, FALSE)\n
- if (v.HasError) then\n
- if (v.HasLockError) then\n
- MsgBox.Error(\"Unable to acquire Read Lock for file \" + f.GetBaseName, \"\")\n
- else\n
- MsgBox.Error(\"The file '\" + f.GetBaseName + \"' is not valid.\", \"\")\n
- end\n
- else\n
- gui = av.GetProject.GetSelectedGUI\n
- if (gui.GetType <> \"Table\") then\n GUIName = \"Table\"\n else\n GUIName = gui.GetName\n end \n
- t = Table.MakeWithGUI(v, GUIName)\n t.SetName( v.GetName)\n t.GetWin.Open\n end\nend "
- )
- )
- )
-